package com.lagou.homework.part04

import akka.actor.{Actor, ActorRef}

/**
 * @author: yehw
 * @date: 2020/10/9 23:02
 * @description: ${TOD}
 */
class BActor(aActor: ActorRef)extends Actor {
  override def receive: Receive = {
    case "AActor 出招类。。。"=>aActor!"start ok!"
      println("AActor 出招类。。。")
      println("start ok!")
    case "我打"=>aActor!"降龙十八掌第一掌"
       println("降龙十八掌第一掌")
    case "佛山无影脚，第一脚"=>aActor!"降龙十八掌第二掌"
       println("降龙十八掌第二掌")
      context.stop(self)
  }
}
